<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/login.css" rel="stylesheet" type="text/css" />
<title>宁波大学心理学系暨研究所后台登录界面</title>
</head>
<script>
    window.onload=function () {
        var myform=document.getElementById("form1");
        myform.onsubmit=function () {
            if(myform.username.value==""){
                alert("请输入用户名！");
                myform.username.focus();
                return false;
            }
            if(myform.password.value==""){
                alert("请输入用户密码！");
                myform.password.focus();
                return false;
            }
            if(myform.code.value==""){
                alert("请输入验证码！");
                myform.code.focus();
                return false;
            }
        }
    }
    function reloadCode() {
        var code=document.getElementById("checkCodeImg");
        code.src="code.php?str="+Math.random();
    }
</script>
<body>
<div class="bg" style="background:url(images/bg.jpg) 50% 0 no-repeat; height:1080px;">
	<div class="biaodan">
        <form id="form1" action="checkLogin.php" method="post">
              <div class="line_01">
            	  <label class="label_01" for="username">用户名:</label> <input class="shurukuang" type="text" name="username" /><br /><br />
              </div>
              <div class="line_02">
              	<label class="label_01" for="password">密&nbsp;&nbsp;码:</label> <input class="shurukuang" type="password" name="password" /><br /><br />
              </div>
              <div class="line_03">
                  <label class="label_03" for="code">验证码:</label> <input class="yanzheng" type="text" name="code"/><a href="javascript:reloadCode();"><img id="checkCodeImg" src="code.php" width="60px" height="20px" hspace="0" vspace="0" class="yanz_tu" /></a><br /><br />
              </div>
              <div class="line_04">
                  <input class="tijiao" type="submit" name="submit" value=""  />
                  <input class="reset_btn" type="reset"  name="reset" value="" />
              </div>
        </form>
    </div>
</div>
</body>
</html>
